package com.demo;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class Initialization {
	private static Logger logger = LoggerFactory.getLogger(Initialization.class);

	@PostConstruct
	private void start() {
		logger.info("Start server");
	}

	@PreDestroy
	public void destory() {
		logger.info("server Stopped");
	}

}
